﻿using School;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;


[TestClass()]
public class StudentTest
{
    [TestMethod()]
    [ExpectedException(typeof(ArgumentOutOfRangeException))]
    public void FacultySmallerNumberTest()
    {
        string name = "Ivan";
        int facultyNumber = 1111;
        Student target = new Student(name, facultyNumber);
    }

    [TestMethod()]
    [ExpectedException(typeof(ArgumentOutOfRangeException))]
    public void FacultyBiggerNumberTest()
    {
        string name = "Ivan";
        int facultyNumber = 999999;
        Student target = new Student(name, facultyNumber);
    }

    [TestMethod()]
    [ExpectedException(typeof(ArgumentNullException))]
    public void EmptyNameTest()
    {
        string name = string.Empty;
        int facultyNumber = 19999;
        Student target = new Student(name, facultyNumber);
    }
}
